package com.bootdo.bj.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import com.bootdo.common.annotation.NotColumn;
import com.bootdo.common.fansheutils.FansheUtils;
import com.bootdo.common.fansheutils.JibenLei;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;


/**
 * 
 * 
 * @author haojiangbo
 * @email 2100272728@qq.com
 * @date 2019-01-23 17:27:07
 */
 @JsonInclude(JsonInclude.Include.NON_NULL)
public class Context extends JibenLei {
	@NotColumn
	private static final long serialVersionUID = 1L;
	
	
	//id
	 @NotColumn 	private Long id;
	//标题
	 private String title;
	//内容
		private String contextValue;
	
	//创建时间
		private Date createTime;
	
	//删除标记
		private Integer delFlag;
	
	//分类ID
		private Integer bjCategoryId;
	
	//分类名称
		private String bjCategoryName;
	
	//用户ID
		private Long userId;
	
	//用户名称
		private String userName;

    public Context(){
    
    	this.createTime = new Date();
    }


	/**
	 * 设置：id
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：内容
	 */
	public void setContextValue(String contextValue) {
		this.contextValue = contextValue;
	}
	/**
	 * 获取：内容
	 */
	public String getContextValue() {
		return contextValue;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}
	/**
	 * 设置：删除标记
	 */
	public void setDelFlag(Integer delFlag) {
		this.delFlag = delFlag;
	}
	/**
	 * 获取：删除标记
	 */
	public Integer getDelFlag() {
		return delFlag;
	}
	/**
	 * 设置：分类ID
	 */
	public void setBjCategoryId(Integer bjCategoryId) {
		this.bjCategoryId = bjCategoryId;
	}
	/**
	 * 获取：分类ID
	 */
	public Integer getBjCategoryId() {
		return bjCategoryId;
	}
	/**
	 * 设置：分类名称
	 */
	public void setBjCategoryName(String bjCategoryName) {
		this.bjCategoryName = bjCategoryName;
	}
	/**
	 * 获取：分类名称
	 */
	public String getBjCategoryName() {
		return bjCategoryName;
	}
	/**
	 * 设置：用户ID
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	/**
	 * 获取：用户ID
	 */
	public Long getUserId() {
		return userId;
	}
	/**
	 * 设置：用户名称
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	/**
	 * 获取：用户名称
	 */
	public String getUserName() {
		return userName;
	}


	@Override
	@JsonIgnore
	public List<HashMap<String, Object>> getFields() {
		// TODO Auto-generated method stub
		return FansheUtils.getFieldList(this);
	}


	public String getTitle() {
		return title;
	}


	public void setTitle(String title) {
		this.title = title;
	}

	@Override
	public String toString() {
		return "Context{" +
				"id=" + id +
				", title='" + title + '\'' +
				", contextValue='" + contextValue + '\'' +
				", createTime=" + createTime +
				", delFlag=" + delFlag +
				", bjCategoryId=" + bjCategoryId +
				", bjCategoryName='" + bjCategoryName + '\'' +
				", userId=" + userId +
				", userName='" + userName + '\'' +
				'}';
	}
}
